
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Volume.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Volume)
{
	TEST(should be able to compare 1 TBSP = 3 TSP)
	{
		Volume volumeA(1, TBSP);
		Volume volumeB(3, TSP);

		ASSERT_TRUE(volumeA==volumeB);
	}

	TEST(should be able to compare 1 OZ = 2 TBSP)
	{
		Volume volumeA(1, OZ);
		Volume volumeB(2, TBSP);

		ASSERT_TRUE(volumeA==volumeB);
	}

	TEST(should be able to calculate 2 TBSP + 1 OZ = 12 TSP)
	{
		Volume volumeA(2, TBSP);
		Volume volumeB(1, OZ);
		Volume volumeC(12, TSP);

		ASSERT_TRUE(volumeA+volumeB==volumeC);
	}

};
